//
//  UIColor+Gradient.h
//  lechuang
//
//  Created by Mr_hi on 2023/3/21.
//  Copyright © 2023 Mooyi. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, GradientChangeColorDirection) {
    GradientChangeColorDirectionLevel,     //水平方向渐变 →
    GradientChangeColorDirectionVertical,   //垂直方向渐变 ↓
    GradientChangeColorDirectionUpwardDiagonal,    //主对角线方向渐变 ↘
    GradientChangeColorDirectionDownDiagonal,       //副对角线方向渐变 ↙
};

@interface UIColor (Gradient)

+ (instancetype)gradientChange_ColorWithSize:(CGSize)size
                                   direction:(GradientChangeColorDirection)direction
                                  startColor:(UIColor*)startColor
                                    endColor:(UIColor*)endColor;

@end


